{% extends "base.html" %}
{% load i18n %}
{% block title %}{{ title }}{% endblock %}

{% block content %}
<h2>{% trans "Appointments made at" %} {{ date }}</h2>
<hr/>

<div class="container">
	 <table class="table">
               <tr>
                		<th>{% trans "Made at" %}</th>
                		<th>{% trans "Auto" %}</th>
                		<th>{% trans "Timeslot" %}</th>
                		<th>{% trans "Date" %}</th>
                        <th>{% trans "Name" %}</th>
                        <th>{% trans "Address" %}</th>
                        <th>{% trans "Postal code" %}</th>
                        <th>{% trans "City" %}</th>
                        <th>{% trans "Phone" %}</th>
                        <th>{% trans "Kind" %}</th>
                        <th>{% trans "Stuff" %}</th>
                        <th>{% trans "Notes" %}</th>
                        <th>{% trans "Made by" %}</th>
                        <th>{% trans "View" %}</th>
                </tr>
                {% for object in appointment_list %}
                <tr>
                	<td>{{ object.created|date:"H:i" }}</td>
                	<td>{{ object.calendar.car }}</td>
                	<td>{{ object.calendar.timeslot }}</td>
                	<td>{{ object.calendar.date }}</td>
                        <td>{{ object.customer.name }}</td>
                        <td>{{ object.customer.get_address_display }}</td>
                        <td>{{ object.customer.postcode }}</td>
                        <td>{{ object.customer.town }}</td>
                        <td>{{ object.customer.phone }}</td>
                        <td>{{ object.get_kind_display }}</td>
                        <td>{{ object.stuff }}</td>
                        <td>{{ object.notes }}</td>
                        <td>{{ object.employee.get_full_name }}</td>
                        <td><a href="{% url "AppointmentView" object.pk  %}"><i class="icon-eye-open"></i></a></td>
                </tr>
                {% endfor %}
        </table>
</div>

{% endblock %}